package com.next.aappublicapp;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.widget.ImageView;

import com.nostra13.universalimageloader.core.ImageLoader;

/**
 * An example full-screen activity that shows and hides the system UI (i.e.
 * status bar and navigation/system bar) with user interaction.
 * 
 * @see SystemUiHider
 */
public class FullImageActivity extends Activity {

	public static final String IMAGE_URL = "IMAGE_URL";
	public static final String ARGS_BUNDLE = "ARGS_BUNDLE";
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.activity_full_image);
		
		final ImageView imageView = (ImageView)findViewById(R.id.postImage);
		Bundle bundle = getIntent().getBundleExtra(ARGS_BUNDLE);
		String imageUrl = bundle.getString(IMAGE_URL);
		Log.i("Ravi", "imageView="+imageView);
		Log.i("Ravi", "imageUrl="+imageUrl);
		ImageLoader.getInstance().displayImage(imageUrl, imageView);

	}

	
}
